package dfbz.demo;

public class Test04 {
    public static void main(String[] args) {
        int getMoment=rabbitMoments(12);
        System.out.println(getMoment);
    }
    public static int rabbitMoments(int month){
        int num1=1;
        int num2=1;
        int count=1;
        for (int i = 2; i <=month ; i++) {
            count=num1+num2;
            num2=num1;
            num1=count;
        }
        return count;
    }
}
